Q3Camera_GetWorldToView
You can use theQ3Camera_GetWorldToView
function to get the current world-to-view space transform.
TQ3Status Q3Camera_GetWorldToView ( TQ3CameraObject camera, TQ3Matrix4x4 *worldToView);
camera
- A camera object.
worldToView
- On output, a pointer to a 4-by-4 matrix.
DESCRIPTION
TheQ3Camera_GetWorldToView
function returns, in theworldToView
parameter, a pointer to a 4-by-4 matrix that describes the current world-to-view space transform defined by the camera specified by thecamera
parameter. The world-to-view space transform is defined only by the placement of the camera; it establishes the camera location as the origin of the view space, with the view vector (that is, the vector from the camera's eye toward the point of interest) placed along the -z axis and the up vector placed along the y axis.